<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title></title>
		<link rel="stylesheet" href="Public/css/wode.css" />
		<link rel="stylesheet" href="Public/css/api.css" />
	</head>
	<body>
		<ul class="nav">
			<li>首页</li>
			<li>全部商品</li>
			<li >晒单</li>
			<li class="active">个人中心</li>
		</ul>
		<div class="header">
			<img src="<?php echo ($userInfo["pic_headimg"]); ?>" class="touxiang"/>
			<div class="content">
				<p><?php echo ($userInfo["name"]); ?></p>
				<p><span>余额:<?php echo ($userInfo["money"]); ?>夺宝币</span><span class="chongzhi">充值</span></p>
			</div>
		</div>
		
		<ul class="list_container">
			<li class="item" onclick="openD()">
			   夺宝记录
			</li>
			<li class="item" onclick="openX()">
			   幸运记录
			</li>
			
			<li class="item" onclick="openB()" style="margin-top:10px;">
			   购买记录
			</li>
		</ul>
		
		<script>
			function openD(){
				window.location.href = "index.php?c=index&a=debao";
			}
			function openX(){
				window.location.href = "index.php?c=index&a=myluck";
			}
			function openB(){
				window.location.href = "index.php?c=index&a=buyrecord";
			}
		</script>
	</body>
</html>